import request from '@/utils/request'

export function AllList() {
  return request({
    url: '/company/all',
    method: 'get',
  })
}

export function List(query) {
  return request({
    url: '/company/list',
    method: 'get',
    params: query
  })
}

export function Info(query) {
  return request({
    url: '/company/info',
    method: 'get',
    params: query
  })
}

export function Status(data) {
  return request({
    url: '/company/status',
    method: 'put',
    data
  })
}

export function Join(data) {
  return request({
    url: '/company/join',
    method: 'put',
    data
  })
}


export function Save(data) {
  return request({
    url: '/company/save',
    method: 'post',
    data
  })
}


export function UserList(query) {
  return request({
    url: '/company/user',
    method: 'get',
    params: query
  })
}

export function UserSave(data) {
  return request({
    url: '/company/userSave',
    method: 'post',
    data
  })
}

export function UserDel(query) {
  return request({
    url: '/company/userDel',
    method: 'delete',
    params: query
  })
}
